<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="cn.ainit.sys.menu.SessionCont"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<jsp:useBean id="now" class="java.util.Date" scope="page" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/css/ainit.css"
          type="text/css"></link>
    <link rel="stylesheet" href="../printCss/print.css" type="text/css"></link>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/model/js/model.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/model/js/perlize.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/model/js/save.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/model/js/initPage.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/sysReport/report.js"></script>

    <script type="text/javascript">
        $(function() {
            $("#dotted :last ").remove()
        });
    </script>
    <script type="text/javascript">
        window.onload=function name(){
            window.print();
            window.close();
        }
    </script>
    <style type="text/css">
        table {
            border-collapse: collapse;
            text-align: center;
        }

        body {
            padding-right: 25px;
            padding-left: 15px;
        }
        #font-bodykt td,th,strong {
            font-family: '楷体';
            font-size: 14px;
        }
    </style>
</head>
<body id="font-bodykt">
<table cellpadding="0px" cellspacing="0px" width="730px" border="0">
    <tr>
        <th colspan="40" style="font-size: 22px">
            ${Company.COM_PRINTNAME}出版社核销明细单(版税)
        </th>
    </tr>
</table>


<table width="730px">
    <tr>
        <td style="width: 30%"></td>
        <td style="width: 20%"></td>
        <td style="width: 30%"></td>
        <td style="width: 20%"></td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <strong>打印日期</strong>
        </td>
        <td style="text-align: left;">
            <fmt:formatDate value="${now}" pattern="yyyy-MM-dd hh:mm:ss" />
        </td>
        <td>
        </td>
    </tr>
</table>

<table width="730px">
    <tr>
        <td style="width: 15%"></td>
        <td style="width: 15%"></td>
        <td style="width: 20%"></td>
        <td style="width: 15%"></td>
        <td style="width: 15%"></td>
        <td style="width: 10%"></td>
        <td style="width: 10%"></td>
    </tr>
    <tr height="25" style="line-height: 20px">
        <td>
            <strong>录单员:&nbsp;</strong>
        </td>
        <td>
            <strong>${data.INPUT_MAN }</strong>
        </td>
        <td>
            <strong>部门:&nbsp;</strong>
        </td>
        <td>
            <strong>${data.Bumen }</strong>
        </td>
        <td>
            <strong></strong>
        </td>
        <td>
            <strong>单据号:</strong>
        </td>
        <td>
            <strong>${data.DJ_CODE}&nbsp;</strong>
        </td>
    </tr>
</table>
<table style="line-height:50px">
    <tr height="25" style="line-height: 50px"></tr>
</table>
<table cellpadding="1px" cellspacing="1px" width="730px" border="1" frame="box">
    <tr height="25">
        <td  style="width: 15%">
            付款对象
        </td>
        <td colspan="4">
            ${data.PUB_ID }&nbsp;
        </td>
    </tr>
    <tr height="25">
        <td  style="width: 15%">
            应付(小写)
        </td>
        <td style="width: 13%" >
            ${data.REAL_MONEY }&nbsp;
        </td>
        <td style="width: 17%">
            应付(大写)
        </td>
        <td colspan="4">
            ${data.BIG_REAL_MONEY }&nbsp;
        </td >
    </tr>
    <tr height="25">
        <td  style="width: 15%">
            银行账号
        </td>
        <td colspan="2">
            ${data.bank_no }&nbsp;
        </td>
        <td style="width: 15%">
            开户行
        </td>
        <td colspan="3">
            ${data.bank_name }&nbsp;
        </td >
    </tr>
    <tr height="25">
        <td  style="width: 17%">
            备注
        </td>
        <td colspan="6">
            ${data.MEMO }&nbsp;
        </td>
    </tr>
</table>

<table style="line-height: 15px">
    <tr height="15" >
        <td style="height: 15px"></td>
    </tr>
</table>
<table cellpadding="1px" cellspacing="1px"  width="730px" border="1" frame="box">
    <tr height="25">
        <td  style="width: 10%">
            审核日期
        </td>
        <td style="width: 15%">
            成本类型单据号
        </td>
        <td style="width: 13%">
            成本类型
        </td>
        <td  style="width: 25%">
            图书名称
        </td>
        <td  style="width: 5%">
            印次
        </td>
        <td  style="width: 10%">
            金额(含税)
        </td>
        <td  style="width: 22%">
            供应商
        </td>
    </tr>
    <c:forEach items="${dataList}" var="temp">
    <tr >
        <td style="width: 10%">${temp.VERIFY_DATE }&nbsp;</td>
        <td style="width: 15%">${temp.DJ_CODE }&nbsp;</td >
        <td style="width: 13%">${temp.DJ_TYPE }&nbsp;</td>
        <td style="width: 25%" >${temp.XT_ID }&nbsp;</td>
        <td style="width: 5%" >${temp.YINCI }&nbsp;</td>
        <td style="width: 15%">${temp.REAL_MONEY }&nbsp;</td>
        <td style="width: 22%">${temp.jiafang }&nbsp;</td>
    </tr>
    <%--<tr id="dotted">--%>
        <%--<td colspan="7">--%>
            <%--<hr width=730px align="left" style="border: 1px dotted;" />--%>
        <%--</td>--%>
    <%--</tr>--%>
    </c:forEach>

</table>
</body>
</html>